package com.woniuxy.cloud.procurementassembly.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 周川雄
 * @since 2022-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("battery_order")
@ApiModel(value = "BatteryOrder对象", description = "")
@Builder
public class BatteryOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单ID")
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    @ApiModelProperty(value = "订单标号")
    @TableField("order_code")
    private String orderCode;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    @TableField("user_name")
    private String userName;

    @TableField("user_phone")
    private String userPhone;

    @ApiModelProperty(value = "订单状态 默认为0发布申请,1审批（成功-进入采购流程）,2审批(失败)，3 采购成功（支付和核对数量等） 4采购失败  ")
    @TableField("order_status")
    private Integer orderStatus;

    @ApiModelProperty(value = "订单总价")
    @TableField("order_count_price")
    private Double orderCountPrice;

    @ApiModelProperty(value = "订单电池预定总数量")
    @TableField("preordain_count")
    private Integer preordainCount;

    @ApiModelProperty(value = "订单签收数量")
    @TableField("sign_cont")
    private Integer signCont;

    @ApiModelProperty(value = "订单留言")
    @TableField("order_message")
    private String orderMessage;

    @ApiModelProperty(value = "电池储藏仓库id")
    @TableField("storehouse_id")
    private Integer storehouseId;

    @ApiModelProperty(value = "电池储藏仓库名字")
    @TableField("storehouse_name")
    private String storehouseName;

    @ApiModelProperty(value = "电池储藏仓库地址")
    @TableField("storehouse_location")
    private String storehouseLocation;


    @ApiModelProperty(value = "电池来源地方")
    @TableField("order_source")
    private String orderSource;

    @ApiModelProperty(value = "默认0订单存在   1为逻辑删除")
    @TableField("order_del")
    private Integer orderDel;

    @ApiModelProperty(value = "记录新增时间")
    @TableField("raw_add_time")
    private LocalDateTime rawAddTime;

    @ApiModelProperty(value = "记录更新时间")
    @TableField("raw_update_time")
    private LocalDateTime rawUpdateTime;


    @ApiModelProperty(value = "申请预算")
    @TableField("order_apply")
    private Double orderApply;


}
